package com.atguigu.guli.service.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
//由于自动配置包 发现我们项目引入的service-base依赖的 mp的场景启动器中引入了 spring-jdbc的依赖
// 数据库连接池的自动配置生效，创建数据库连接池对象，需要使用连接池配置参数，如果没有创建失败则报错
//排除数据库连接池的自动配置
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //组件注解、启用自动配置、默认组件的扫描(初始化spring容器)
@ComponentScan(basePackages = "com.atguigu.guli.service")
public class ServiceOssApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOssApplication.class , args);
    }
}
